import uvicorn
from fastapi import FastAPI

from routers import alg, custom_history, user

app = FastAPI()

app.include_router(alg.router, prefix="/custom_gun")
app.include_router(user.router)
app.include_router(custom_history.router)

# 根路由
@app.get("/")
async def root():
    return {"message": "欢迎使用智能聊天机器人API"}



if __name__ == "__main__":
    uvicorn.run("main:app", host="0.0.0.0", port=12345, reload=False)
